import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import VueI18n from 'vue-i18n';
import './permission'
Vue.use(ElementUI, { size: 'small', zIndex: 3000 });
Vue.config.productionTip = false
Vue.use(VueI18n);

// 多语言切换
const i18n = new VueI18n({
  locale: localStorage.getItem('yy') || 'zh', //设置默认语言
  messages: {
    'zh': require('@/assets/language/zh'),
    'en': require('@/assets/language/en')
  }
});


new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app')
